package com.example.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/request")
@RestController
public class Requestcontroller {
    @RequestMapping("/param1")
    public String param1(String userName){
        return "传递单个参数: "+ userName;
    }
    @RequestMapping("/param2")
    public String param2(Integer age){
        return  "接收: " + age;
    }
    @RequestMapping("/param3")
    public String  param3(int age){
        return  "接收: " + age;
    }

}
